package com.iqiyi.pps.epg.web.service.zk;

import com.iqiyi.pps.epg.web.model.ValueNode;
import org.apache.zookeeper.KeeperException;


import java.io.IOException;


public interface ZkOptionService {

    public ValueNode getValueNode(String path, ZookeeperConnection zkConn) throws InterruptedException, KeeperException, IOException;

    public String createPath(String path, ZookeeperConnection zkConn) throws IOException;

    public String createPath(String path, byte[] data, ZookeeperConnection zkConn) throws IOException;

    public boolean setData(ZookeeperConnection zkConn, String path, String content) throws IOException;

    public boolean deletePath(String path, ZookeeperConnection zkConn) throws IOException;

}
